package com.example.shengyin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Admin对象 d_admin
 * 
 * @author ruoyi
 * @date 2023-07-29
 */
@Data
@ApiModel("用户类")
public class User3
{

    @ApiModelProperty("使用名")
    private String uname;
    @ApiModelProperty("密码")
    private String pass;
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$",message = "请输入正确的手机号！")
    @ApiModelProperty("手机号")
    private String phone;
}
